﻿namespace Baggr.FeedParser.Rss
{
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Xml.Serialization;

    [Serializable]
    [DebuggerStepThrough]
    [DesignerCategory("code")]
    public class RssChannel
    {
        [XmlElement("category")]
        public RssCategory Category { get; set; }

        [XmlElement("cloud")]
        public RssCloud Cloud { get; set; }

        [XmlElement("copyright")]
        public string Copyright { get; set; }

        [XmlElement("description")]
        public string Description { get; set; }

        [XmlElement("docs", DataType = "anyURI")]
        public string Docs { get; set; }

        [XmlElement("generator")]
        public string Generator { get; set; }

        [XmlElement("image")]
        public RssImage Image { get; set; }

        [XmlElement("language", DataType = "language")]
        public string Language { get; set; }

        [XmlElement("lastBuildDate")]
        public string LastBuildDate { get; set; }

        [XmlElement("link", DataType = "anyURI")]
        public string Link { get; set;}

        [XmlElement("managingEditor")]
        public string ManagingEditor { get; set; }

        [XmlElement("pubDate")]
        public string PubDate { get; set; }

        [XmlElement("rating")]
        public string Rating { get; set; }

        [XmlElement("skipDays")]
        public RssDays[] SkipDays { get; set; }

        [XmlElement("skipHours")]
        public int[] SkipHours { get; set; }

        [XmlElement("textInput")]
        public string TextInput { get; set; }

        [XmlElement("title")]
        public string Title { get; set; }

        [XmlElement("ttl")]
        public string Ttl { get; set; }

        [XmlElement("webMaster")]
        public string WebMaster { get; set; }

        [XmlElement("item")]
        public RssItem[] Items { get; set;}
    }
}